﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VCDIFF.Tools;

namespace VCDIFF.Create
{
    public class CreateHeader
    {
        public Header Header { get; set; }

        public CreateHeader()
        {
            Header = new Header();
            InitializeHeader();
        }

        public void InitializeHeader()
        {
            Header.Header1 = 0xD6;
            Header.Header2 = 0xC3;
            Header.Header3 = 0xC4;
            Header.Header4 = 0x00;
            Header.HdrIndicator = 0x00;
            Header.SecondaryCompressorId = 0x00;
            Header.CodeTableDataLength = 0;
            Header.NearCacheSize = 0x00;
            Header.SameCacheSize = 0x00;
        }

        public byte[] GetHeaderData()
        {
            return Header.GetHeaderData();
        }

        public string GetHeaderString()
        {
            return Header.GetHeaderString();
        }
    }
}
